package com.hospital.hospitalserver.mapper;

import com.hospital.hospitalserver.entity.demo.MedicalDTO;
import com.hospital.hospitalserver.entity.demo.MedicalInsurance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 模拟医保账户部分功能
 * */
@Mapper
public interface MedicalInsuranceMapper {

    /**
     * 模拟查询医保二维码
     * 用于生成二维码和条形码
     * */
    MedicalInsurance queryMedicalByInsuranceCardNumber(@Param("insurance_card_number") String cardNumber);


    /**
     * 根据二维码卡号查询用户基础信息
     * */
    MedicalInsurance queryMedicalByQrCode(MedicalDTO request);

    /**
     * 根据医保卡号获取报销比例
     */
    Double getReimbursementRate(@Param("insurance_card_number") String insurance_card_number);
}
